﻿/*
 * Created by SharpDevelop.
 * User: Michael
 * Date: 10/01/2014
 * Time: 12:15 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 *  Please find our android apps in there: https://play.google.com/store/search?q=advangeneration
 */
using System;
using System.Collections.Generic;

namespace AdvGenContact.Data.Repositories
{
	/// <summary>
	/// Description of IRepository.
	/// </summary>
	public interface IRepository <TEntity, TId>
	{
		TEntity Get(TId id);
		TEntity New();

		IList<TEntity> GetAll();
		void Save(TEntity entity);	
		void SaveOrUpdate(TEntity entity);
		void Delete(TEntity entity);
	}
}
